package com.app.art.config;

import com.app.art.utils.jwt.JwtTokenUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtConfig {

    @Value("${jwt.secret}")
    private String secret;

    @Bean
    public JwtTokenUtil initJwtTokenUtil() {
        return new JwtTokenUtil(secret);
    }
}
